Hide scroll bar when window is too small to avoid Gtk+ warning.
authorJan D. <jan.h.d@swipnet.se>
Tue, 22 Jun 2010 12:28:08 +0000 (14:28 +0200)
committerJan D. <jan.h.d@swipnet.se>
Tue, 22 Jun 2010 12:28:08 +0000 (14:28 +0200)
commitc659871bc7534bfba18bdb75a3652e2d4e2498e6
treefefe73e738a45bf4deeaf677acb80525685865b9
parent19b0d37ee3886affebef97081624b7f03780fa96
Hide scroll bar when window is too small to avoid Gtk+ warning.

* gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
if height is less than scroll bar min size.
(xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.

* gtkutil.h (xg_show_scroll_bar): : Remove.

* xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
src/ChangeLog
src/gtkutil.c
src/gtkutil.h
src/xterm.c